libxc: Add unsafe decompressors
authorBastian Blank <bastian@waldi.eu.org>
Thu, 18 Apr 2013 11:49:54 +0000 (12:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 22 Apr 2013 11:46:30 +0000 (12:46 +0100)
commit592d3ef961cafda917a7f123999dc04d426254ee
tree98f82705cbb7348589b2c2630f069dc25e05ed5b
parent071c61e7367987a9f71dc18c3c58a5dba659a5c8
libxc: Add unsafe decompressors

Add decompressors based on hypervisor code.  This are used in mini-os by
pv-grub.

This enables pv-grub to boot kernels compressed with e.g. xz, which are
becoming more common.

Signed-off-by: Bastian Blank <waldi@debian.org>
Adjusted to use terminology "unsafe" rather than "trusted" to indicate
that the user had better sanitise the data (or not care, as in stub
domains) as suggested by Tim Deegan. This was effectively a sed script.

Minimise the changes to hypervisor code by moving the "compat layer" into the
relevant libxc source files (which include the Xen ones).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
14 files changed:
stubdom/Makefile
tools/libxc/Makefile
tools/libxc/xc_dom_bzimageloader.c
tools/libxc/xc_dom_decompress_unsafe.c [new file with mode: 0644]
tools/libxc/xc_dom_decompress_unsafe.h [new file with mode: 0644]
tools/libxc/xc_dom_decompress_unsafe_bzip2.c [new file with mode: 0644]
tools/libxc/xc_dom_decompress_unsafe_lzma.c [new file with mode: 0644]
tools/libxc/xc_dom_decompress_unsafe_lzo1x.c [new file with mode: 0644]
tools/libxc/xc_dom_decompress_unsafe_xz.c [new file with mode: 0644]
xen/common/decompress.h
xen/common/lzo.c
xen/common/unlzma.c
xen/common/unlzo.c
xen/common/xz/private.h